*************************************************************2010 CSED PRE-ELECTION POLL**************************************************************use "UT10p_ToDrawSample.dta"*This is the model for the 2nd District Democratic Primary*Only include Democrats and Unaffiliatedlogit pprim08 prim gen muni age age2 registration dem age_reg prim_dem gen_dem if age>=20 & Congressional==2 & sec_dist==1predict yhat_dem2010 if Congressional==2 & sec_dist==1*This is the model for the statewide Republican Primary*Only include Republicans and Unaffiliatedlogit pprim08 prim gen muni age age2 registration rep age_reg prim_rep gen_rep if age>=20 & statewide==1predict yhat_rep2010 if statewide==1hist yhat_dem2010
hist yhat_rep2010hist yhat_dem2010 if sample_dem == 1
hist yhat_rep2010 if sample_rep == 1
